package com.gz.rocketmq.order;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
public class OrderInfo {

    private int orderId;

    private String desc;


    public static List<OrderInfo> initOrder(){
        List<OrderInfo> orderInfos = new ArrayList<>();

        OrderInfo info = new OrderInfo(1,"创建订单");
        orderInfos.add(info);

        info = new OrderInfo(2,"创建订单");
        orderInfos.add(info);

        info = new OrderInfo(3,"创建订单");
        orderInfos.add(info);

        info = new OrderInfo(1,"付款");
        orderInfos.add(info);

        info = new OrderInfo(2,"付款");
        orderInfos.add(info);

        info = new OrderInfo(2,"完成");
        orderInfos.add(info);

        info = new OrderInfo(3,"退款");
        orderInfos.add(info);
        return orderInfos;
    }

}
